home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d18 / nrpas13.arc / ERF.PAS < prev    next >
Pascal/Delphi Source File  |  1991-05-01  |  163b  |  9 lines

  1. FUNCTION erf(x: real): real;
  2. BEGIN
  3.    IF (x < 0.0) THEN BEGIN
  4.       erf := -gammp(0.5,sqr(x))
  5.    END ELSE BEGIN
  6.       erf := gammp(0.5,sqr(x))
  7.    END
  8. END;
  9.